package com.lc.user.express.httpserver;

import com.lc.user.express.model.AddrModel;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONArray;
import org.json.JSONObject;

import java.util.List;

/**
 * Created by Administrator on 2016/3/31.删除常用路线
 */
@HttpInlet(Net.GET_ADDR_DELETE)
public class GetAddrDelete extends ZJDBAsyGet<Object> {
    public String userid,addressid;

    public GetAddrDelete(String userid,String addressid, AsyCallBack listener) {
        super(listener);
        this.userid = userid;
        this.addressid = addressid;
    }

    @Override
    protected Object parser(JSONObject object) {
        if (object.optInt("message") == 1) {
            TOAST = "删除成功";
            return "1";
        } else {
            TOAST = "删除失败";
        }
        return null;
    }
}
